package com.offcn.sellergoods.feign;

import com.offcn.entity.PageResult;
import com.offcn.entity.Result;
import com.offcn.sellergoods.pojo.ItemCat;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/****
 * @Author:ujiuye
 * @Description:
 * @Date 2021/2/1 14:19
 *****/
@FeignClient(value="DYM-SELLERGOODS")
@RequestMapping("/itemCat")
public interface ItemCatFeign {

    /***
     * 根据ID查询ItemCat数据
     * @param id
     * @return
     */
    @GetMapping("/{id}")
    Result<ItemCat> findById(@PathVariable Integer id);
}